﻿package com.obas.integration.element.telnet.type
{
	import com.ease.common.enums.TextualEnum;
	import com.ease.lang.Enum;
	import com.ease.lang.EnumConstants;
	import com.obas.integration.element.telnet.type.HWPortFeatureType;
	import com.obas.type.PortFeatureType;

	[Bindable]
	[RemoteClass(alias="com.obas.integration.element.telnet.type.HWPortFeatureType")]

	public class HWPortFeatureType extends Enum
	{
		/* static init */
		{ initEnum(HWPortFeatureType); }

		/* Constants */
		public static const EPON:HWPortFeatureType = new HWPortFeatureType("EPON", "epon", com.obas.type.PortFeatureType.EPON);

		private var _text:String;
		private var _portFeatureType:com.obas.type.PortFeatureType;

		public function HWPortFeatureType(name:String=null ,text:String=null ,portFeatureType:com.obas.type.PortFeatureType=null) {
			super.name = name;
			this._text = text;
			this._portFeatureType = portFeatureType;
		}

		public function get text():String  { return this._text; }
		public function get portFeatureType():com.obas.type.PortFeatureType  { return this._portFeatureType; }

		/* constant query */
		public static function getEnumConstants():Array {
			return Enum.getEnumConstants(HWPortFeatureType);
		}

		public static function get(constantName:String, caseSensitive:Boolean = false):HWPortFeatureType {
			return HWPortFeatureType(Enum.get(HWPortFeatureType, constantName, caseSensitive));
		}
	}
}